"use strict";!function(a,b){function c(){var c=function(){},d=c,e=c;return{resolve:function(c){d(c);try{setTimeout(function(){(new Image).src="//stat.radar.imgsmail.ru/update?p=authGate&t=load_"+a.__AG.version+"_"+a.location.hostname+"&v=1"+(b.referrer?"&r="+escape(b.referrer):"")+"&rnd="+Math.random()},10)}catch(e){(new Image).src="//stat.radar.imgsmail.ru/update?p=authGate&t=load_errorOnLogVersion&v=1&rnd="+Math.random()}},reject:function(c){e(c),a.__PH&&((new Image).src="//stat.radar.imgsmail.ru/update?p=authGate&t=loader&v=1&rlog=AG_"+a.location.host+"&rlog_message="+a.__PH._.parseJson(c)+(b.referrer?"&r="+escape(b.referrer):"")+"&rnd="+Math.random())},then:function(a,b){"function"==typeof a&&(d=a),"function"==typeof b&&(e=b)}}}function d(d){var e=b.createElement("script"),g=!1,h=c(),i=setTimeout(function(){g||h.reject("Expire load time")},d||1e4);return e.onreadystatechange=e.onload=function(){this.state&&!/loaded|complete/.test(this.state)||(clearTimeout(i),g=!0,h.resolve(a.__AG))},e.type="text/javascript",e.src=f,b.getElementsByTagName("body")[0].appendChild(e),{then:h.then}}var e="function"==typeof define&&define.amd,f="https://img.imgsmail.ru/ag/0.3.13/authGate.js";return e&&!a.__PH?void define([f],function(a){return a}):void(a.__AG=d())}(window,document);